// 引入插件
import Vue from 'vue'
import Vuex from 'vuex'
import home from './modules/home'
import search from './modules/search'
import detail from './modules/detail'
import user from './modules/user'
import trade from './modules/trade'


//注册插件
Vue.use(Vuex)

//设置选项
const state = {
    categoryList: []
}
const actions = {}
const muations = {}
const getters = {}

//创建vuex实例对象
const store = new Vuex.Store({
    state,
    actions,
    muations,
    getters,
    modules: { home, search, detail, user, trade }

})
export default store

